const Staff = require('../../../service/Staff')
// const staffdata = require('../../../mock/staffs')

// exports.addStaffs = function () {
//     Staff.addStaffs(staffdata)
// }

// exports.selectStaff = function () {
//     Staff.selectStaff()
// }

const { routerUtil } = require('../../util');

const constraints = {
    name: {
        cnname: true
    }
}

const router = routerUtil();
// 查询全部
router.get('/', async (req, res) => {
    return await Staff.selectStaff()

})
// 查询单个
router.get('/:id', async () => {
    return await Staff.selectStaff()
})

// 新增
router.post('/', async () => {

})
module.exports = router.router